import http from '@/utils/request'

// 客户资料 API
export default{

    // 获取客户资料列表
    async pageList(params){
      return await http.get("/api/customer/list",params);
    },

    /**
    * 添加客户资料
    * @returns
    */
    async addObj(params) {
      return await http.post("/api/customer/add", params);
    },
      
    /**
    * 编辑客户资料
    * @returns
    */
    async updateObj(params) {
      return await http.put("/api/customer/update", params);
    },

    // 审核
    async audit(params) {
      return await http.put("/api/customer/approve", params);
    },

    // 批量删除/删除客户
    async del(params) {
      return await http.put("/api/customer/delete", params);
    },

}

